import Vue from "vue"
import Router from "vue-router"
// import routes from "./router"

import Find from "../views/Find.vue"
import Top from "../views/Top.vue"
import Play from "../views/Play.vue"
import Detail from "../views/Detail.vue"
Vue.use(Router)

const router = new Router({
    // 配置路由就是routes属性
    routes: [
        {
            path: "/",
            component: Top
        },

        {
            path: "/play",
            component: Play
        },
        {
            path: "/find/:id/:name",
            component: Find
        },
        {
            path: "/detail/:id",
            component: Detail
        }

    ]



})

export default router